import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/contact/HelloWorld'
import Commodity from '@/components/contact/commodity'
import Shopping from '@/components/contact/Shopping'
import Customer from '@/components/contact/Customer'
import Journalism from '@/components/journalism/Journalism'
import Content from '@/components/journalism/content'
import Sharing from  '@/components/sharing/sharing'
import Imglist from  '@/components/sharing/imglist'
import Goodslist from '@/components/shop/goodslist'
import Goodlistof from  "@/components/shop/goodlistof.vue"
import Goodhtml from  "@/components/shop/goodhtml.vue"

Vue.use(Router)
export default new Router({
  linkActiveClass: 'mui-active',
  routes: [
    { path: '/', redirect: '/hone' },
    {
      path: '/hone',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/commodity',
      name: 'Commodity',
      component: Commodity
    },
    {
      path: '/shopping',
      name: 'Shopping',
      component: Shopping
    },
    {
      path: '/customer',
      name: 'Customer',
      component: Customer
    },
    {
      path: '/hone/content/:id',
      name: 'Content',
      component: Content
    },
    {
      path: '/hone/journalism',
      name: 'Journalism',
      component: Journalism
    },
    {
      path: '/hone/sharing',
      name: 'Sharing',
      component: Sharing
    },
    {
      path: '/hone/sharing/imglist/:id',
      name: 'Imglist',
      component: Imglist
    },
    {
      path: '/goodslist',
      name: 'Goodslist',
      component: Goodslist
    },
    {
      path: '/goodslist/goodlistof/:id',  
      name: 'Goodlistof',
      component: Goodlistof
    },
    {
      path: '/goodslist/goodhtml/:id',  
      name: 'Goodhtml',
      component: Goodhtml
    }
  ]
})
